home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
dec92.zip
/
1012036A
< prev
next >
Wrap
Text File
|
1992-10-13
|
733b
|
38 lines
//-------------------------------------------------
// Person.h - Interface file for the Person object.
//-------------------------------------------------
#import <objc/Object.h>
@interface Person : Object
{
char *name;
int age;
}
// Initialize newly created instance.
- initWithName:(const char*)aName
age:(int)anAge;
// Tidy up the instance
- free;
// Set instance variables.
- setName:(const char*)aName;
- setAge:(int)anAge;
// Get instance variable values.
- (const char*)name;
- (int)age;
// Print Person info.
- printInfo;
// Archiving methods.
- read:(NXTypedStream*)stream;
- write:(NXTypedStream*)stream;
//-------------------------------------------------
@end